import { NavBar } from 'antd-mobile'



import { NoticeBar } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'

function Index() {
  const nav = useNavigate()
  
  const handleBack = () => {
   
    nav(-1) // 返回上一个页面
  }

  return (
    <div>
      <NavBar onBack={handleBack}>我的卡券</NavBar>
       <NoticeBar content='问诊券使用说明' color='alert' />
     <p style={{fontSize:'17px',textAlign:'center'}}>没有更多有效券了</p>
    </div>
  )
}

export default Index
